import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';

export default async function a012(fd: IFeidaoAiBrowserComponent) {
	// todo
	const node = fd.data.node.querySelector<HTMLInputElement>('[data-id="all1"]');

	const node_all = fd.data.node.querySelectorAll('[data-id="list1"]');
	const node_chk = fd.data.node.querySelectorAll('[data-id="list1"]:checked');
	if (Array.from(node_all).length === Array.from(node_chk).length) {
		node.checked = true;
	} else {
		node.checked = false;
	}
}
